
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>
        宠物列表
    </title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="css/main.css" media="all">
    <link rel="stylesheet" href="css/bootstrap.css">
    <script type="text/javascript" src="lib/loading/okLoading.js"></script>
    <!-- 引入ElementUI样式 -->
    <link rel="stylesheet" href="/css/index.css">
</head>
<body>
<div class="x-nav">
            <span class="layui-breadcrumb">
              <a><cite>我的信息</cite></a>
              <a><cite>我的宠物</cite></a>
            </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"  href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>

<div id="app">
    <div class="x-body" >
        <div style="width:950px ">
            <el-form :model="pet" :rules="rules" ref="repairFormRef" label-width="120px" class="demo-ruleForm">

                <el-form-item label="宠物名称" prop="name">
                    <el-input v-model="pet.name" :disabled="true"></el-input>
                </el-form-item>

                <el-form-item label="宠物颜色" prop="color">
                    <el-input v-model="pet.color" :disabled="true"></el-input>
                </el-form-item>

                <el-form-item label="备注" prop="remark">
                    <el-input v-model="pet.remark" :disabled="true"></el-input>
                </el-form-item>

                <el-form-item label="收养时间" prop="adoptTime">
                    <el-input v-model="pet.adoptTime" :disabled="true"></el-input>
                </el-form-item>

            </el-form>
        </div>
    </div>
</div>
<script src="lib/layui/layui.js" charset="utf-8"></script>
<script src="/js/vue.js" charset="utf-8"></script>
<!-- 引入Element组件库 -->
<script src="/js/index.js"></script>
<script src="/js/axios.js" charset="utf-8"></script>
<script src="js/x-layui.js" charset="utf-8"></script>
<script>
    layui.use(['laydate','element','laypage','layer'], function(){
        $ = layui.jquery;//jquery
        laydate = layui.laydate;//日期插件
        lement = layui.element();//面包导航
        laypage = layui.laypage;//分页
        layer = layui.layer;//弹出层
        okLoading.close($)
        //以上模块根据需要引入

    });
        var app = new Vue({
        el:"#app",//声明当前Vue在页面的作用域
        data:{
            pet:{},
            },
        created(){
                 axios.post("pet/userPet").then((res)=>{
                    app.pet = res.data.data;
                });
        },

});
</script>

</body>
</html>